package com.day1011;

import javax.swing.*;

public class MyFrame extends JFrame {
    MyPanel myPanel;
    {
        try {
            myPanel = new MyPanel();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public MyFrame(){
        super.setSize(72*11,72*11);
        super.setTitle("地图");
        super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// 窗口关闭
        super.add(myPanel);
        super.setVisible(true);
    }
}
